package com.tedu.dao;

import com.tedu.pojo.Topic;

import java.util.List;

/**
 * 新闻类   型   dao
 */
public class NewsTopicDao extends BaseDao {

    /**
     * 获取全部的新闻类型
     * @return
     */
    public List<Topic> getAllTopic(){
        List<Topic> query = query(Topic.class, "SELECT * FROM topic");
        return query;
    }

}
